// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    authinfo:'',//门店认证信息
    // baseurl: 'http://192.168.0.177:8090', //本地
    // baseurl: 'https://api.yiyue.kuaijihudong.net', // wxf8153f630c3fd8a9 测试环境
    baseurl: 'https://newapi.yiyue.pub', // 线上 wx72cefd902c847310
    storePrefix: '/store-api',
    mallPrefix: '/mall-api',
    mallType: 'mall',
    msgPrefix: '/msg-api',
    msgType: 'msg',
    userPrefix:'/user-api',
    userType: 'user',
    userInfo: null,
    marginBottom: null, //  页面底部距离自定义tabbar组件的距离
    tabBarHeight: null, //  自定义tabbar组件高度
    imgUrl: 'https://kjyiyue.oss-cn-shenzhen.aliyuncs.com/images/', //  全局阿里云imgurl
    shopimgUrl: 'https://kjyiyue.oss-cn-shenzhen.aliyuncs.com/shopimages/', //  全局阿里云美发端imgurl
    mallimgUrl: 'https://kjyiyue.oss-cn-shenzhen.aliyuncs.com/mallimages/', //  全局阿里云商城imgurl
    hairimgUrl: 'https://kjyiyue.oss-cn-shenzhen.aliyuncs.com/hairimages/'
  }
})
